package com.app.manage.moudles.confs.constants;

import java.util.HashMap;
import java.util.Map;

public enum VariTypeEnums {
    APP_VAR(1,"应用变量"),
    SYS_VAR(2,"系统变量"),
    DATA_VAR(3,"数据库变量");


    private Integer type;

    private String name;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    VariTypeEnums(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public static Map<Integer,String>  map(){
        Map<Integer,String> map = new HashMap<>();
        for(VariTypeEnums e : VariTypeEnums.values()){
            map.put(e.getType(),e.getName());
        }
        return map;
    }
}
